import request from './request'

export function login(data) {
  return request({
    url: '/users/login',
    method: 'post',
    data
  })
}

export function getUserInfo(name) {
  return request({
    url: '/users/findUsername',
    method: 'post',
    data: { name }
  })
}

export const editUserpass = (params) => {
  return request.post(`/users/editUserpass`, params)
}
